<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>  
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">


<c:if test="${loginDAO.usuarioLogado == false}">
    <c:redirect url="./login.jsp" />
</c:if>

<f:view>
    <html>
        <head>
            <title><h:outputText value="#{msg['page.index.title']}" /></title>
            <link rel="stylesheet" type="text/css" href="./css/estilo.css">
        </head>
    <body>        
        <h:form>
            <div style="width: 80px;">
            <rich:dropDownMenu value="#{msg['menu.label.cadastros']}" direction="bottom-right" jointPoint="tr" >
                <rich:menuItem value="#{msg['menu.label.cadastros.usuario']}" action="#{usuarioBean.gotoListaUsuarios}"/>
                <rich:menuItem value="#{msg['menu.label.cadastros.livro']}" action="#{livroBean.gotoListaLivros}"/>
                
                <rich:menuSeparator />

                <rich:menuItem value="#{msg['menu.label.cadastros.sair']}" action="" />
            </rich:dropDownMenu>
            
            <rich:dropDownMenu value="#{msg['menu.label.movimentos']}" direction="bottom-right" jointPoint="tr" >
                <rich:menuItem value="#{msg['menu.label.movimentos.reserva']}" action="#{reservaBean.gotoListaReservas}"/>
                <rich:menuItem value="#{msg['menu.label.movimentos.emprestimo']}" action="#{emprestimoBean.gotoListaEmprestimos}"/>
                
            </rich:dropDownMenu>
            </div>
        </h:form>
    </body>
    </html>
</f:view>
